﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Galaktika.BI.Silverlight.Controls.PivotGrid.Data;

namespace Galaktika.BI.Silverlight.Controls.PivotGrid.Controls
{
    public class RowMemberControl : MemberControl
    {
        public RowMemberControl(MemberInfo info, int drillDownDepth) 
            : base(info)
        {
            Margin = new Thickness(drillDownDepth * MembersAreaContol.DRILLDOWN_SPACE_WIDTH, 0, 0, 0);

//            Border border = LayoutRoot;
//            border.BorderThickness = new Thickness(0, 0, 1 + MembersAreaContol.SPLITTER_SIZE, 1 + MembersAreaContol.SPLITTER_SIZE);

            //if(Member.DrilledDownChildren.Count > 0)
            //{
            //    RootPanel.VerticalAlignment = VerticalAlignment.Top;
            //}

            if (drillDownDepth > 0)
            {
                ShowLeftBorder();
            }
        }
    }
}
